package com.java.service;


import com.java.pojo.EnterGoods;
import com.java.pojo.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


//进货详情内容  货物单

public interface EnterGoodsService {

    //根据进货和进货的具体内容的主外键,和编号
    List<EnterGoods> getListByGoodS( Integer eid,  String document);

    /*根据外键查询个数*/
    Integer getCountByEid( Integer eid);


    //删除
    int deleteEnterGood( String eid);

    int deleteEnterGoodByEgid2(String egid);

    //删除
    boolean deleteEnterGoodByEgid(String egid);

    //根据主键查询entergoods
    EnterGoods getEnterGoodsByEid(Integer eid);


    boolean addEnterGoods(EnterGoods enterGoods);

    /*根据外键查询list集合*/
    List<EnterGoods> getEnterGoodsListByEgid(@Param("egid") Integer egid);


    /*修改退货*/
    int updateByOkAndNo2( Integer a);

    /*修改,entergoods的修改,然后带着entergood修改*/
    int updateByEnterGoodAndEnterGoods(Integer egid,Integer num,Double money);


    /*根据goodstyle查询*/
    List<EnterGoods> getGoodsByGoodStyle( Integer a);


    //更在okandno3,是否在销售订单当中.当在销售订单中添加产品的时候,则要修改,因为要进入销售订单中
    int updOknandNo3( String g);

    EnterGoods findEnByName(@Param("goodname2")String goodname2);


    int updOknandNo3_2(String goods2);
}
